package light.mvc.service.admin;

import java.util.List;

import light.mvc.page.admin.User;
import light.mvc.page.base.PageFilter;

public interface UserServiceI {
	
	public void add(User user);

	public void delete(Integer id);

	public void edit(User user);

	public User get(Integer id);
	
	public User login(User user);
	
	public List<String> getResources(Integer id);
	
	public List<User> dataGrid(User user, PageFilter ph);
	
	public Long count(User user, PageFilter ph);
	
	public boolean editUserPwd(Integer id, String oldPwd, String pwd);
	
	public User getByUsername(User user);
	
	public User getByIdNumber(String idNumber);
	
	public List<User> doctorGrid(User someDoctor, PageFilter ph);
	
	public Long doctorGridCount(User someDoctor, PageFilter ph);


}
